//
//  HLNewViewController.m
//  HL-百思不得姐
//
//  Created by admin on 16/4/25.
//  Copyright © 2016年 CHL. All rights reserved.
//

#import "HLNewViewController.h"
#import "HLSubTagViewController.h"

@interface HLNewViewController ()

@end

@implementation HLNewViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //设置导航栏
    [self setupNavBar];
}

#pragma mark - 设置导航栏
-(void)setupNavBar
{
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithImage:[UIImage imageNamed:@"MainTagSubIcon"] hightlightImage:[UIImage imageNamed:@"MainTagSubIconClick"] target:self action:@selector(MainTagSubIconClick)];
    
    self.navigationItem.titleView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"MainTitle"]];
}

#pragma mark - 导航栏按钮点击事件
- (void)MainTagSubIconClick
{
    HLSubTagViewController *subTagVC = [[HLSubTagViewController alloc] init];
    [self.navigationController pushViewController:subTagVC animated:YES];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
